from tortoise import fields
from tortoise.models import Model


class Baby_words(Model):
    id = fields.IntField(pk=True)
    user_id = fields.IntField(description="用户id")
    content = fields.TextField(description="内容")
    record_time = fields.DatetimeField(auto_now_add=True, description="更新时间")

    def __str__(self):
        return self.id

    class Meta:
        db_table = "baby_words"
        table_description = "童言童语表"

